package com.aspose.cells.a.d;

public class zgm {
   public static boolean a(com.aspose.cells.zal var0, zge var1, zn var2) throws Exception {
      zgl var3 = new zgl();
      String var4 = var3.a(var2, false);
      if (!zcq.a(var4)) {
         return false;
      } else {
         var0.b("Path");
         if (var2.a != null) {
            var0.c("StrokeThickness", com.aspose.cells.a.c.zp.b(var2.a.b));
            var0.c("StrokeLineJoin", zgf.a(var2.a.f));
            if (var2.a.f == 0 || var2.a.f == 3) {
               var0.c("StrokeMiterLimit", com.aspose.cells.a.c.zp.b(var2.a.h));
            }

            var0.c("StrokeStartLineCap", zgf.b(var2.a.c));
            var0.c("StrokeEndLineCap", zgf.b(var2.a.d));
            if (var2.a.g != 0) {
               var0.c("StrokeDashOffset", com.aspose.cells.a.c.zp.b(var2.a.k));
               var0.c("StrokeDashCap", zgf.c(var2.a.e));
               var0.c("StrokeDashArray", zgf.a(zgf.a(var2.a)));
            }
         }

         if (var2.a() != null) {
            var0.c("RenderTransform", zgf.a(var2.a()));
         }

         var0.c("Data", var4);
         if (var2.b() != null) {
            var0.c("Clip", var3.a(var2.b(), true));
         }

         if (var2.d() != null) {
            a(var0, var1, var2.d());
         }

         if (var2.a != null) {
            a(var0, var1, var2.a);
         }

         return true;
      }
   }

   public static void a(com.aspose.cells.zal var0) throws Exception {
      var0.c();
   }

   public static void a(com.aspose.cells.zal var0, zge var1, zs var2) throws Exception {
      if (var2.i == 0) {
         var0.b("Path.Stroke");
         var0.b("SolidColorBrush");
         var0.c("Color", zgf.a(var2.a));
         var0.c();
         var0.c();
      }
   }

   public static void a(com.aspose.cells.zal var0, zge var1, com.aspose.cells.b.a.b.zc var2) throws Exception {
      var0.b("Path.Fill");
      zgc.a(var0, var1, var2);
      var0.c();
   }
}
